// import request from '@/utils/request'
import request from '@/api/request'
const api = {
	// 获取列表
	getList(query) {
		return request({
			url: '/tug-api/prodPlanDispatch/list',
			method: 'get',
			params: query
		})
	},
	// 根据Id查询单条
	getDetailById(params) {
		return request({
			url: `/tug-api/prodPlanDispatch/getById`,
			method: 'get',
			params: params
		})
	},
	// 新建/修改
	save(data) {
		return request({
			url: '/tug-api/prodPlanDispatch/save',
			method: 'post',
			data: data
		})
	},
	//删除
	remove(params) {
		return request({
			url: `/tug-api/prodPlanDispatch/removeBatch`,
			method: 'post',
			params: params
		})
	}
}
export default api